package com.duanjw.springcloud.sentinel.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * sentinel 消费者
 *
 * @author duanjw
 */
@SpringBootApplication
@EnableFeignClients
public class SentinelProviderApplication {
    public static void main(String[] args) {
        SpringApplication.run(SentinelProviderApplication.class, args);
    }


//    @Bean
//    @SentinelRestTemplate(blockHandler = "handleException", blockHandlerClass = ExceptionUtil.class)
//    public RestTemplate restTemplate() {
//        return new RestTemplate();
//    }
}
